#!/bin/bash
#
# batch file to setup filter
#

################################################################################
#
# echo informations
#

echo
echo "Warning!"
echo "Uninstall ARGOX printer driver..."
echo

################################################################################
#
# echo informations
#
echo "Removing driver files..."

rm -rf /usr/share/cups/model/argox/*.ppd
rm -rf /usr/share/cups/model/argox/uninstall
rm -rf /usr/lib/cups/filter/rastertoargox

echo "Restart spooler - CUPS."
################################################################################
#
# restart 
#
if test -f /etc/init.d/cups
then
  /etc/init.d/cups restart
else
  if test -f /etc/init.d/cupsys
  then
    /etc/init.d/cupsys restart
  fi
fi

################################################################################
#
# echo informations
#

echo "Uninstall driver completed."
echo

exit 0


